package com.open.capacity.trade.service;

import com.open.capacity.common.exception.service.ServiceException;
import com.open.capacity.common.model.Concurrent;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;
import com.open.capacity.dto.EditSalaryDto;
import com.open.capacity.trade.model.ConcurrentExcel;
import com.open.capacity.trade.vo.ConcurrentVo;
import com.open.capacity.trade.vo.SalaryInfoVo;

import java.util.List;
import java.util.Map;

public interface ConcurrentService {
    PageResult<ConcurrentVo> findAllConcurrent(Map<String, Object> params) throws ServiceException;

    void deleteConcurrent(Long id,Long concurrentId) throws ServiceException;

    Result saveOrUpdate(Concurrent concurrent) throws ServiceException;

    List<ConcurrentExcel> findAllConcurrentExcel(Map<String, Object> params) throws ServiceException;

    Result insertConcurrent(Concurrent concurrent) throws ServiceException;

    Result updateConcurrent(Concurrent concurrent) throws ServiceException;

    SalaryInfoVo findSalaryByBatchId(Long id);

    boolean editSalaryByBatchId(EditSalaryDto dto);
}
